﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="produtoDetalhe.aspx.cs" Inherits="MakeIT.Alf.Site.Apresentacao.produtoDetalhe" EnableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <div class="titulo">
<div style="float:left; width:300px;">IMÓVEL DETALHES</div>
<div class="voltar">
    <a href="Default.aspx">
        <img alt="" src="App_Themes/site/images/btVoltar.png" border="0" />
    </a>
</div>
</div>
<div class="detalhe">
    <div class="codigoDetalhe">
            Cód.: <asp:Label ID="lblCodigo" runat="server" Text="Label"></asp:Label>
        </div>
    <div class="proDetalhe">
        <div align="center" >
            <asp:ImageButton ID="btnImgG" runat="server" 
                style="max-height: 175px; max-width: 260px;" OnClick="btnImgG_Click"
                ImageUrl="~/App_Themes/site/images/logo.png" />
            
        </div>
        <asp:Repeater ID="Repeater1" runat="server">
            <ItemTemplate>
                <div class="imgTroca">
                    <asp:ImageButton ID="btnImgP" runat="server"
                        style="max-height: 45px; max-width: 60px;" 
                        ImageUrl='<%# "~/DownImovelxfotoFotoSmall.aspx?idImovelxfoto=" + Eval("PKString") %>' 
                        CommandArgument='<%#Eval("PKString") %>'
                        OnClick="btnImgP_Click" />
               </div>
            </ItemTemplate>
        </asp:Repeater>
        

    </div>
    <div class="conteudoDetalhe">
        <h2>
            <asp:Label ID="lblCategoriaTipoImovel1" runat="server" 
                Text="lblCategoriaTipoImovel1"></asp:Label>
        </h2>
        <asp:Label ID="lblEndereco" runat="server" Text="lblEndereco"></asp:Label>
        <br />
        <br />
 
        <span class="txtAzul">
        <asp:Label ID="lblDescricao" runat="server" Font-Size="14px" Text="lblDescricao"></asp:Label>
        </span>
        <h2>áreas</h2>
        <asp:Label ID="lblAreaComum" runat="server" Text="lblAreaComum"></asp:Label>
        <br />
        <h2>Características</h2>
        <asp:Label ID="lblCaracteristicas" runat="server" Text="lblCaracteristicas"></asp:Label>
        <br />
        <br />

    </div>
    <div class="proDetalheValor">
        <div class="valores"><h4> 
            <asp:Label ID="lblCategoriaTipoImovel2" runat="server" 
                Text="lblCategoriaTipoImovel2"></asp:Label>
            </h4>
            <h3>
                <asp:Label ID="lblValor" runat="server" Text="lblValor"></asp:Label>
            </h3>
        </div>
        <asp:HyperLink ID="hlContato" runat="server" NavigateUrl="~/Contato.aspx">
            <img alt="" src="App_Themes/site/images/btContatoD.png" border="0" />
        </asp:HyperLink>
    </div>
    <div class="tituloSemSeta" style="width: 100%; float:left">
</div>
</div>


<div ID="PanelFoto" style="visibility:hidden;">
            <div style="position:fixed;  top:0; left:0; background-color:Gray; filter: alpha(opacity=50); opacity:.5; width:100%; height:100%;vertical-align:middle; text-align:center;">
            </div>
            <div style="position:fixed;  top:0; left:0; width:100%; height:100%; font-size:medium; font-weight:bold;">
            <table style="width:100%; height:100%;">
                <tr>
                    <td style="text-align:center; vertical-align:middle;">
                    <center>

                <asp:Table ID="Table1" runat="server" cellpadding="0" cellspacing="0">
                    <asp:TableRow>
                    <asp:TableCell HorizontalAlign="Right">
                        <asp:ImageButton ID="ImageButton1" runat="server"  ImageUrl="~/App_Themes/site/images/Fechar.png"
                               style="margin-bottom:-5px;"
                               OnClick="ButtonFotoClose_Click"/>
                    </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow id="tbrow" runat="server">
                        <asp:TableCell id="tbcell" runat="server" BackColor="#707070" style="vertical-align:middle; text-align:center; padding:5px 10px 5px 10px;" ><center>
                            <div id="tamanhoImg" >
                                <asp:Image ID="Image2" runat="server" />
                                <br />
                                <asp:Label ID="Label2" runat="server" Text="" style="color:White;"></asp:Label>
                            </div>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
                
                <asp:RoundedCornersExtender ID="RoundedCornersExtender2" runat="server" TargetControlID="tbcell" Radius="8">
                </asp:RoundedCornersExtender>

                    </center>
                    </td>
                </tr>
            </table>
            </div>
        </div>



    <script type="text/javascript">
        function exibePainel() {
            
            p = document.getElementById("PanelFoto");
            p.style.visibility = "visible";

            i = document.getElementById(<asp:Literal ID="ltlImagem" runat="server"></asp:Literal>);
            if(document.documentElement.clientHeight - 100 < 200){
                i.style.maxHeight = "200px"; 
            }else{
                i.style.maxHeight = (document.documentElement.clientHeight - 100) + "px"; 
            }
            
            if(document.documentElement.clientWidth - 100 < 200){
                i.style.maxWidth = "200px"; 
            }else{
                i.style.maxWidth = (document.documentElement.clientWidth - 100) + "px"; 
            }
            
        }
    
    </script>

</asp:Content>

